﻿using BuzzX8.Xmpp.StreamElements.Stanza;

namespace BuzzX8.Xmpp.StreamElements.Factories
{
    public class PresenceModel : StanzaModel<PresenceStanzaType>
    {
        public PresenceModel(PropertyDictionary parameters) : base(parameters)
        { }

        public AvailabilityType Availability
        {
            get { return ModelParameters.Get<AvailabilityType>("availabilityType"); }
            set { ModelParameters["availabilityType"] = value; }
        }

        public string StatusText
        {
            get { return ModelParameters.Get<string>("statusText"); }
            set { ModelParameters["statusText"] = value; }
        }

        public int? Priority
        {
            get { return ModelParameters.Get<int?>("priority"); }
            set { ModelParameters["priority"] = value; }
        }
    }
}
